home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pine / osdep / canacces < prev    next >
Text File  |  1996-02-06  |  512b  |  18 lines

  1. /*----------------------------------------------------------------------
  2.        Check if we can access a file in a given way
  3.  
  4.    Args: file      -- The file to check
  5.          mode      -- The mode ala the access() system call, see ACCESS_EXISTS
  6.                       and friends in pine.h.
  7.  
  8.  Result: returns 0 if the user can access the file according to the mode,
  9.          -1 if he can't (and errno is set).
  10.  ----*/
  11. int
  12. can_access(file, mode)
  13.     char *file;
  14.     int   mode;
  15. {
  16.     return(access(file, mode));
  17. }
  18.